
import { _decorator, Component, Node, CCInteger, CCFloat, CCBoolean, Label, Enum } from 'cc';
const { ccclass, property, executeInEditMode } = _decorator;
/**
 * DateTime = Sun Feb 27 2022 11:30:07 GMT+0800 (中国标准时间)
 * Author = carlosyzy
 */
enum Num {
    one = 1,
    two = 2,
    three = 3,
    foru = 4,
}
Enum(Num);  //定义一个枚举类型
@ccclass('Test2')
@executeInEditMode(true)
export class Test2 extends Component {
    @property({ type: Num })
    num:Num=Num.one;

    @property({type:CCFloat,slide:true,max:1.0,min:0.0,step:0.01})
    slide:number=0.5;
    onLoad() {
        console.log("onLoad");
    }
}
